package com.java.mapper;

import com.java.entity.PsInspectiontaskMain;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @author caiyuan
 * @version 1.0
 * @Date 2020/6/16 14:58 Dream-Seeker
 * @Description
 */
public interface PsInspectiontaskMainMapper {

    Integer selectCount(@Param("inspectionTaskCode") String inspectionTaskCode,
                        @Param("lineCode") String lineCode,
                        @Param("taskStatusName") String taskStatusName,
                        @Param("issuedByName") String issuedByName,
                        @Param("issuedTimestart") String issuedTimestart,
                        @Param("issuedTimeend") String issuedTimeend);

    List<PsInspectiontaskMain> findByPageInspec(HashMap<String, Object> map);

    PsInspectiontaskMain getInspecById(Integer inspecId);

    int addInspection(PsInspectiontaskMain psInspectiontaskMain);

    int updatePsInspection(PsInspectiontaskMain psInspectiontaskMain);

    Integer delInspection(Integer inspeId);

    Integer taskStatusInspection(Integer inspeId);

    Integer carriedOutInspection(Integer inspeId);


}
